package com.radiation.rms.mapper;

import com.radiation.rms.entity.Area;
import com.radiation.rms.entity.Device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.radiation.rms.vo.AreaVo;
import com.radiation.rms.vo.CountVo;
import com.radiation.rms.vo.DeviceVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 设备表 Mapper 接口
 * </p>
 *
 * @author 1062
 * @since 2021-04-02
 */
public interface DeviceMapper extends BaseMapper<Device> {

    List<AreaVo> getDataMap(@Param("departmentIds") List<String> departmentIds);

    List<Area> getAreaMap(@Param("departmentIds") List<String> departmentIds);

    CountVo getCount(@Param("departmentIds") List<String> departmentIds);

    List<Device> queryDevice(DeviceVo deviceVo);

    List<AreaVo> deviceCondition(DeviceVo deviceVo);

    List<String> getMac();

    void updateMacStatus(@Param("date")Date date, @Param("code") String code, @Param("macInvalidList") List<String> macInvalidList);

    List<Device> getMacData(@Param("departmentIds") List<String> departmentIds);
}

